import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import VueQuillEditor from 'vue-quill-editor';
// require styles
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import rules from '@/utils/validate.js'
import store from '@/store/index.js'
import myTable from "@/components/common/table/i-table.vue"
import myForm from "@/components/common/form/i-form.vue"
import moment from 'moment'
import './plugin/aMap'
Vue.prototype.$moment = moment
    // import Antd from 'ant-design-vue'
    // import 'ant-design-vue/dist/antd.css'
// 全局挂载规则校验
Vue.prototype.$rules = rules
Vue.use(VueQuillEditor)
Vue.use(ElementUI);
// Vue.use(Antd)
Vue.component('i-table', myTable)
Vue.component('i-form', myForm)
Vue.directive("v-focus", {
  bind(el, binding) {
    el.focus();
  }
});
Vue.config.productionTip = false
    /* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    store,
    components: { App },
    template: '<App/>'
})